package com.lzd.plugins.utils

class FileUtil {
    static void clearFolder(File folder) {
        if (!folder.exists() || !folder.isDirectory()) {
            return
        }
        for (file in folder.listFiles()) {
            if (file.isDirectory()) {
                clearFolder(file)
            } else {
                file.delete()
            }
        }
        folder.delete()
    }
}
